package com.example.demo.mapper;

import com.example.demo.entito.Product;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface ProductMapper extends ElasticsearchRepository<Product,Long> {
    Page<Product> findByName(@Param("name") String name);
}
